﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Configuration;

namespace SalariesApp
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            string IsSplashScreenEnabled = ConfigurationManager.AppSettings.Get("IsSplashScreenEnabled");  
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (IsSplashScreenEnabled == null || bool.Parse(IsSplashScreenEnabled))
                Application.Run(new SplashScreen());
            Application.Run(new Form1());
        }
    }
}
